package com.enjoyor.soa.traffic.restt.tpcms.dubbo.impl;

import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Reference;
import com.enjoyor.soa.traffic.api.dto.tpcms.PassCheckDto;
import com.enjoyor.soa.traffic.api.service.dubbo.tpcms.IDubboPassCheckService;
import com.enjoyor.soa.traffic.restt.tpcms.dubbo.IPassCheckConsumeService;
import com.enjoyor.soa.traffic.util.pojo.Page;
import com.enjoyor.soa.traffic.util.pojo.ResultPojo;

/**
 * 审核管理信息
 * 
 * @author fzj 2018年5月4日
 */
@Component
public class PassCheckConsumeService implements IPassCheckConsumeService {

    @Reference(version = "1.0.0", timeout = 30000)
    private IDubboPassCheckService dubboPassCheckService;

    /**
     * 申请审核
     */
    @Override
    public ResultPojo insertPassCheck(PassCheckDto passCheckDto, String userName) {
        return dubboPassCheckService.insertPassCheck(passCheckDto, userName);
    }

    /**
     * 查询审核记录列表信息
     */
    @Override
    public ResultPojo getPassCheckList(String checkId, String passApplyId, String checkPersonId, String checkDeptId,
            String checkStartTime, String checkEndTime, String checkStatusId, String isDelete) {
        return dubboPassCheckService.getPassCheckList(checkId, passApplyId, checkPersonId, checkDeptId, checkStartTime,
                checkEndTime, checkStatusId, isDelete);
    }

    /**
     * 查询申请单分页信息-审核模块
     */
    @SuppressWarnings("rawtypes")
    @Override
    public ResultPojo getPassApplyCheckPage(Page page) {
        return dubboPassCheckService.getPassApplyCheckPage(page);
    }

}
